const questionList = []
const addQuestion = question => {
  if (!questionList.some(item => item.itemSerial == question.itemSerial)){
    questionList.push(question)
  }
}

const getQuestionLabelById = id =>{
  let item = questionList.find(item => item.itemSerial == id)
  return item?.itemName
}
export {addQuestion,getQuestionLabelById}
